package com.woniuxy.mapper;

import com.woniuxy.entity.*;

import java.util.List;

/**
 * @author：xurice
 * @date：Created in 2024/4/16 14:20
 * @description：开药表
 * @modified By：
 * @version: $
 */
public interface DrugDistributionMapper {

    //添加一条开药表数据
    void addDrugDistribution(DrugDistribution drugDistribution);

    //批量添加用药明细
    void addBatchDrugDetails(List<DrugDetail> drugDetails);

    //根据条件查询药品发放列表
    List<DrugDistribution> queryList(DrugDistribution drugDistribution);

    //根据开药表雪花编号查询开药详情
    List<DrugDetail> queryDrugDetail(DrugDetail drugDetail);


    //发药
    void updateDrugStatus(DrugDistribution drugDistribution);

    //查询发药列表
    DrugDistribution queryDrugDistribution(Integer id);


    //查询病人未完成的开药表编号
    List<String> queryPPNO(Integer id);

    //查询病人的用药明细，根据开药表雪花id
    List<DrugDetail> queryMDSByPpNo(List<String> PPNOS);

    //添加用药缴费表 t_mf数据
    void  addDrugFund(DrugFund drugFund);
}
